<?php

namespace WoXuanWang\Advertisement\Requests;

use Illuminate\Foundation\Http\FormRequest;
use WoXuanWang\Advertisement\Models\AdSlot;

class UpdateAdSlotRequest extends FormRequest
{

    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return AdSlot::$rules;
    }

    public function attributes()
    {
        return [
            'position' => '位置',
            'type'     => '类型'
        ];
    }
}
